/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Review.test1;

import java.io.Serializable;

/**
 *
 * @author THIEN
 */
public class Fan implements Serializable{

    String model;
    double power;
    boolean isRemoteControl;

    public Fan() {
    }

    public Fan(String model, double power, boolean isRemoteControl) {
        this.model = model;
        this.power = power;
        this.isRemoteControl = isRemoteControl;
    }
    @Override
    public String toString(){
       return "Fan's model: "+model+"\tPower: "+power+"\tRemote control: "+isRemoteControl;
    }

    public boolean isIsRemoteControl() {
        return isRemoteControl;
    }

    public String getModel() {
        return model;
    }

    public double getPower() {
        return power;
    }

    public void setIsRemoteControl(boolean isRemoteControl) {
        this.isRemoteControl = isRemoteControl;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public void setPower(double power) {
        this.power = power;
    }
    
}
